﻿namespace Luka;

/// <summary>
/// 跨域基本配置
/// </summary>
[NotScanned]
public sealed class CorsOptions
{
    /// <summary>
    /// 策略名称
    /// </summary>
    public string? PolicyName { get; set; }

    /// <summary>
    /// 允许请求的域名
    /// </summary>
    public string[]? WithOrigins { get; set; }

    /// <summary>
    /// 允许请求的头部
    /// </summary>
    public string[]? WithHeaders { get; set; }

    /// <summary>
    /// 允许请求的方法类型
    /// </summary>
    public string[]? WithMethods { get; set; }
}